<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<script type="text/javascript">
	$(document).ready(function(){
		$("#backBtn").click(function(){
			history.go(-1);
		});//backBtn click
		
	
	});
</script>
<script type="text/javascript">
function deleteMember(date)
{
	 
	$.ajax({
		type : "post",
		url : "${initParam.root}/member/groupBan.do",
		data:"id="+date,
		datatype:"json",
		success:function(data){
			alert("탈퇴 되었습니다");
			location.href="${initParam.root}/manage/groupManage.do";
			
		}
	});

}
</script>

<form id="updateF" action="memberUpdate.do" method="post">
Group Name : ${requestScope.map.groupinfo.gname }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	Leader : ${requestScope.map.groupinfo.gleader}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    CreateDate : ${requestScope.map.groupinfo.gdate}<Br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    Content : ${requestScope.map.groupinfo.gcontent}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    Member : <br> 
    <c:forEach items="${requestScope.map.list }" var="list">
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ID : ${list.id } &nbsp;| &nbsp;Level : ${list.level}&nbsp; |&nbsp; Tel : ${list.tel } &nbsp;|&nbsp; <input type="button" value="탈퇴" onclick="deleteMember(${list.id})"><Br>
	</c:forEach>
<input id="backBtn" type="button" value="뒤로가기">
</form>
